package ru.bashsoft.nero.nameparser;

import java.util.List;

/**
 * Hello world!
 *
 */
public class App 
{
    private static void error(Exception ex) {
        System.out.println("ERROR: " + ex.toString());        
    }
    
    private static void parse(String sport, String url) {
        try {
            Parser parser = new Parser(sport);                        
            parser.parse(url, "/home/nero/NetBeansProjects/nameParser/result/" + sport);
        }
        catch (Exception ex) {            
            error(ex);
        }
    }
    
    public static void main( String[] args ) {        
        //parse("fb", "games.php?sp=fb&turnir=2");
        //parse("hk", "games.php?sp=hk&turnir=225");        
    }
}
